JC=javac
CP=Physics.jar:./processing/opengl:$(CLASSPATH)
PROGS=tangled-orbit

# class files for each rule
TO_CLASSES=HMusic.java \
	HMusicWrapper.java \
	HParticle.java \
	HTriangle.java \
	MoonParticle.java \
	PlanetParticle.java \
	SolarParticle.java \

tangled-orbit: $(HIGHWAY_CLASSES)
	$(JC) -cp $(CP) $(JFLAGS) $(TO_CLASSES)

run:
	java $(JFLAGS) -cp $(CP) -Djava.library.path=$(CP) HMusicWrapper

tags:
	@find . -name "*.java" | etags - 2>/dev/null

clean:
	@echo "If you want to remove binaries, try \`make fresh\`"
	@rm -f *~ \#*

fresh:
	@rm -f *~ \#*
	@rm -f *.class
